package com.banma.dao.mapper.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Repository;

import com.banma.common.entity.UserEntity;
import com.banma.dao.mapper.UserMapper;

@Repository

public class UserDAO {

	@Autowired
	private UserMapper userMapper;
	
	public List<UserEntity> queryAll(){
		return userMapper.queryAll();
	}

	public UserEntity findById(Integer id){
		return userMapper.selectById(id);
	}

}
